package com.example.demo.mq.activemq;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 * Created by Wen Gao on 2018/7/12.
 */
@Component
public class JMSConsumer {

    private final static Logger logger = LogManager.getLogger(JMSConsumer.class);

    @JmsListener(destination = "springboot.queue.test")
    public void dequeue(String msg) {
        logger.info("出队列： " + msg);
    }


}